<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    // 二维数组
    var arr = [
        ["张三", 75, 66, 77],
        ["李四", 67, 89, 90],
        ["王五", 96, 50, 87],
    ];

    // 数组对象 => 数组中嵌套对象 (每个对象是对一条数据的描述  , 数据用来存放多个相同类型的数据)
    var arr = [
        { name: "张三", chinese: 75, math: 66, english: 77 },
        { name: "李四", chinese: 67, math: 89, english: 90 },
        { name: "王五", chinese: 96, math: 50, english: 87 },
    ];

    // 对象数组 =>  对象中也可以嵌套数组
    // var zhang = new Object({
    //     name: "张三", // 属性
    //     age: 18,
    //     isStudy: true,
    //     grade: {
    //         chinese: 75,
    //         math: 66,
    //         english: 77,
    //     },
    //     hobby: ["唱", "跳", "rap"],
    //     say: function () { // 函数 => 方法
    //         console.log("hello");
    //     }
    // });
    // console.log(zhang);


    // json对象
    var data = {
        country: "china",
        list: [
            {
                province_id: "Ch01",
                province_name: "北京",
                list: [
                    { city_id: "Ch0101", city_name: "海淀区" },
                    { city_id: "Ch0102", city_name: "朝阳区" },
                    { city_id: "Ch0103", city_name: "沙河区" },
                ]
            },
            {
                province_id: "Ch02",
                province_name: "上海",
                list: [
                    { city_id: "Ch0201", city_name: "徐汇" },
                    { city_id: "Ch0202", city_name: "静安" },
                ]
            },
            {
                province_id: "Ch03",
                province_name: "湖北",
                list: [
                    { city_id: "Ch0301", city_name: "武汉" },
                    { city_id: "Ch0302", city_name: "鄂州" },
                ]
            },
        ]
    }

    console.log(data);







</script>

</html>